package com.mjh.zhujianju.service.party;

import com.livew.framework.base.service.BaseService;
import com.mjh.zhujianju.model.party.BuildingClassUsersEO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author liuyang
 * @Description:
 * @date 2018/9/5 21:43
 */
public interface BuildingClassUsersService extends BaseService<BuildingClassUsersEO> {

    /**
     * 加入学习计划
     * @param userId
     * @param classId
     */
    void addJoinClass(Long userId,Long classId);

    List<BuildingClassUsersEO> findBuildingClassUsersEOByUserId(Long userId);

    /**
     * 取消学习
     * @param userId
     * @param classId
     */
    void updateClassUser(Long userId,Long classId);

    /**
     * 重新学习
     * @param userId
     * @param classId
     */
    void updateClassUserRestore(Long userId,Long classId);

    List<BuildingClassUsersEO> findBuildingClassUsersEOByUserId(Long userId,Long classId);

    List<BuildingClassUsersEO> queryBuildingClassUsersEOByUserIdAndClassId(Long userId,Long classId);
}
